rolesystem.roles.auction
Class Situation

java.lang.Object
  extended by rolesystem.roles.auction.Situation
All Implemented Interfaces:
java.io.Serializable

public class Situation
extends java.lang.Object
implements java.io.Serializable

This class represents the situation of an auction. Instances of this class are constant, once created they cannot be changed.

See Also:
Serialized Form

Constructor Summary
Situation(Price price, int winnBidder, int countdown)
           
 
Method Summary
 int getCountdown()
          Returns the current situation of countdown.
 Price getPrice()
          Returns the price proposed for good.
 int getWinnBidder()
          Returns the current winning bidder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Situation

public Situation(Price price,
                 int winnBidder,
                 int countdown)
Parameters:
price - Price proposed for good.
winnBidder - Current winning bidder.
countdown - Current situation of countdown (ticks to end).
Method Detail

getPrice

public Price getPrice()
Returns the price proposed for good.

Returns:
The price proposed for good.

getWinnBidder

public int getWinnBidder()
Returns the current winning bidder.

Returns:
The current winning bidder.

getCountdown

public int getCountdown()
Returns the current situation of countdown.

Returns:
The current situation of countdown.